package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class MakerTest2 {
    public static void main(String[] args) {
        JuiceMaker2 m=new JuiceMaker2();
        m.brand="九阳";
        m.watt=50;
        m.price=499;
        String drink=m.makeJuice("桃子");
        System.out.println("老刘喝到了"+drink);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>");
        m.makeJuice("洋葱");
        //System.out.println("老孔喝到了"+drink);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>");
        System.out.println("老吴喝到了"+m.makeJuice("葡萄"));

        System.out.println(">>>>>>>>>>>>>>>>");
        String d=m.makeJuice2("苹果","菠萝");
        System.out.println("老刘喝到了"+d);
        String f1="桃子";
        String f2="柿子";
        String s3 = m.makeJuice2(f1, f2);
        System.out.println("老孔喝到了"+s3);
    }
}
